Release 10.1A: OpenEdge Development:
Messaging and ESB


sendToQueue procedure

Sends a message to a queue.

Syntax

PROCEDURE sendToQueue. 
DEFINE INPUT PARAMETER queueName AS CHARACTER.  
DEFINE INPUT PARAMETER message AS HANDLE.  
DEFINE INPUT PARAMETER priority AS INTEGER.  
DEFINE INPUT PARAMETER timeToLive AS DECIMAL.  
DEFINE INPUT PARAMETER deliveryMode AS CHARACTER.  

Parameters

queueName

The queue to which the message is sent. If the message is a reply to a received message, queueName can be the ReplyTo field obtained from the original message.

message

The Message object.

priority

The message priority (optional): 0–9. If Unknown value (?), the session default is used.

timeToLive

Time to live, in milliseconds (optional). If Unknown value (?), the session default is used.

deliveryMode

The delivery mode (optional): PERSISTENT, NON_PERSISTENT, NON_PERSISTENT_ASYNC, or UNKNOWN (?). If Unknown value (?), the session default is used.

Applies to

Session objects

Notes

See also

browseQueue procedure, receiveFromQueue procedure, sendToQueue procedure

For more information, see the "Sending messages to a queue" section, the "Receiving messages from a queue" section, and the "Methods unique to Point-to-Point messaging" section.

For an example, see the "PTP message example" section.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095